<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/22,0022
  Time: 9:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/AddMusicController" method="get">
    <table border="1px black">
        <tr>
            <td>歌名</td>
            <td><input type="text" name="name"></td>
        </tr>
        <tr>
            <td>歌手</td>
<%--            <td><input type="text" name="sid"></td>--%>

<%--            <td><select name="sid">--%>
<%--                <c:forEach items="${list}" var="singer">--%>
<%--                    <option value="${singer.sid}">${singer.sname}</option>--%>
<%--                </c:forEach>--%>
<%--            </select></td>--%>
            <td>
                <c:forEach items="${list}" var="list">
                    <input type="checkbox" name="sid" value="${list.sid}" >${list.sname}
                </c:forEach>
            </td>

        </tr>
        <tr>
            <td>专辑</td>
            <td><input type="text" name="album"></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="添加"></td>
        </tr>
    </table>
</form>
</body>
</html>
